﻿using DAO;
using DTO;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class LichThiDau_BLL
    {
        //Lấy danh sách cầu thủ
        static public DataTable SelectAll()
        {
            return LichThiDau_DAO.SelectAll();
        }
        public static DataTable SelectbyDoiBong(int id)
        {
            return LichThiDau_DAO.SelectbyDoiBong(id);
        }
        public static LichThiDau_DTO SelectbyDoiBong(int id1, int id2)
        {
            return LichThiDau_DAO.SelectbyDoiBong(id1, id2);
        }
        public static DataTable SelectbyVong(int id)
        {
            return LichThiDau_DAO.SelectbyVong(id);
        }

        public static LichThiDau_DTO SelectByID(int id)
        {
            return LichThiDau_DAO.SelectByID(id);
        }

        public static void Insert(LichThiDau_DTO dto)
        {
            LichThiDau_DAO.Insert(dto);
        }

        public static void Update(LichThiDau_DTO dto)
        {
            LichThiDau_DAO.Update(dto);
        }
        public static void Delete(int ma)
        {
            LichThiDau_DAO.Delete(ma);
        }
        public static void Delete()
        {
            LichThiDau_DAO.Delete();
        }
    }
}
